//
//  ModelOfDataCommend.m
//  FreeTravel
//
//  Created by 徐康 on 16/8/31.
//  Copyright © 2016年 KX. All rights reserved.
//

#import "ModelOfDataCommend.h"

@implementation ModelOfDataCommend
- (void)setValue:(id)value forKey:(NSString *)key{
    NSMutableArray *array = [NSMutableArray array];
    if ([key isEqualToString:@"slide"]) {
//
        for (NSDictionary *dic in value) {
            ModelOfSildeCommend *slide = [ModelOfSildeCommend modelWithDic:dic];
            [array addObject:slide];
        }
        self.slide = array;
    }if ([key isEqualToString:@"comment_entry"]) {
        self.comment_entry = value;
    }if ([key isEqualToString:@"feed"]) {
        self.feed = [ModelOfFeedCommend modelWithDic:value];
    }
}
- (void)setComment_entry:(ModelOFComment_entryCommend *)comment_entry{
    _comment_entry = comment_entry;
}
- (void)setFeed:(ModelOfFeedCommend *)feed{
    _feed = feed;
}
- (void)setSlide:(NSMutableArray *)slide{
    _slide = slide;
}
@end
